package psn.zjk.solar4.controller;

import com.erayt.solar.SolarMessage;
import com.erayt.solar.core.SolarResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    public final static Logger LOG = LoggerFactory.getLogger(HelloController.class);

    @RequestMapping("/hello.action")
    public @ResponseBody
    SolarMessage hello() {
        return SolarResult.returnValue("demoKey","hello solar4");
    }
}